package juice.AOP$introduction;

import com.google.inject.Binder;
import com.google.inject.Inject;
import com.google.inject.Module;
import com.google.inject.matcher.Matchers;
import com.google.inject.name.Names;

public class ServiceInterceptorModule implements Module
{
	@Inject
	public Service service;

	@Override
	public void configure(Binder binder)
	{
		binder.bindInterceptor(Matchers.any(), Matchers.annotatedWith(Names.named("log")), new LoggerMethodInterceptor());
	}
}
